package cn.thornbird.orgsync.model.dingtalk;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DepartmentBaseList extends Response {

    @JsonProperty("result")
    private List<DepartmentBase> result;


    @Data
    public static class DepartmentBase {

        @JsonProperty("dept_id")
        private Long deptId;

        @JsonProperty("name")
        private String name;

        @JsonProperty("parent_id")
        private Long parentId;

        @JsonProperty("create_dept_group")
        private Boolean createDeptGroup;

        @JsonProperty("auto_add_user")
        private Boolean autoAddUser;

    }

}
